package cn.yanxiaotong.Mygame;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;

import cn.yanxiaotong.MyFrame.Constant;

public class greatWall {
private int x,y;
private int wid=Constant.WW;
private int hei=Constant.WH;
public greatWall(int x, int y) {
	this.x = x;
	this.y = y;
}
public void draw(Graphics g){
	Color c=g.getColor();
	g.setColor(Color.GRAY);
	g.fillRect(x, y, wid, hei);
	g.setColor(c);
}
public Rectangle getRect(){
	return new Rectangle(x,y,wid,hei);
}
}
